<script>
	import {
		login,
		clickChannel,
		sendSmsCode,
		checkChannelV1,
		oldRegisterV5,
		analysis
	} from "@/api/index.js";
	export default {
		onLaunch: function() {
			// let token = uni.getStorageSync('token')
			// console.log(uni.getStorageSync('token'),'jj')
			// if(token){
			// 	uni.switchTab({
			// 		url:'/pages/index/index'
			// 	})
			// }
		},
		onShow: async function() {
			
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			countCharactersWithSplit(str, char) {
			    return (str.split(char).length - 1); // 因为分割后数组的元素个数比字符数多1（最后一个元素是空字符串）
			},
			closeSplash() {
				// plus.navigator.closeSplashscreen();
			},
			cutBeforeChar(str, char) {
				if (str) {
					var index = str.indexOf(char);
					if (index != -1) {
						return str.substring(0, index);
					}
				}
				
				return str;
			},
		
		}
	}
</script>

<style>
	/*每个页面公共css */
	.dis {
		display: flex;
	}

	@font-face {
		font-family: "DIN";
		src: url("@/static/DIN-Bold/din-bold-2.ttf")
	}

	.DIN {
		font-family: 'DIN' !important;
	}
</style>